﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace Server.Models
{
    public class DatabaseInitializer : DropCreateDatabaseIfModelChanges<DatabaseContext>
    {
        protected override void Seed(DatabaseContext context)
        {
            TaiXe tx = new TaiXe { Ten = "Nguyen Van A" };
            context.TaiXe.Add(tx);
            context.SaveChanges();
        }
    }
}